projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49e4a58
)
(hack-local-variables): If buffer has no file, display its buffer name.
author
Richard M. Stallman
<rms@gnu.org>
Sat, 9 Oct 1993 03:46:57 +0000
(
03:46
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sat, 9 Oct 1993 03:46:57 +0000
(
03:46
+0000)
lisp/files.el
patch
|
blob
|
history
diff --git
a/lisp/files.el
b/lisp/files.el
index 92e0837157ffe29e9546e82cf52b912d566a4ec7..063377b5e49cf56838bc451f34cfbb8b8064bf9d 100644
(file)
--- a/
lisp/files.el
+++ b/
lisp/files.el
@@
-972,7
+972,11
@@
If `enable-local-variables' is nil, this function does not check for a
(beginning-of-line)
(set-window-start (selected-window) (point)))
(y-or-n-p (format "Set local variables as specified at end of %s? "
- (file-name-nondirectory buffer-file-name))))))))
+ (if buffer-file-name
+ (file-name-nondirectory
+ buffer-file-name)
+ (concat "buffer "
+ (buffer-name))))))))))
(let ((continue t)
prefix prefixlen suffix beg
(enable-local-eval enable-local-eval))